<?php
/**
 * The template for displaying Author Archive pages.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>

		<div id="container">
			<div id="content" role="main">

<?php
	/* Queue the first post, that way we know who
	 * the author is when we try to get their name,
	 * URL, description, avatar, etc.
	 *
	 * We reset this later so we can run the loop
	 * properly with a call to rewind_posts().
	 */
	if ( have_posts() )
		the_post();
?>

<div class = "entry-list">
				<div class = "etlh">
					<div class = "etrh">
					<div class="et-header">
					<span class = "cat-title left">
					<h2>
						<div class="current-place">
							<a><?php _e('您的位置：');?></a>
								<a href="<?php echo get_settings('home'); ?>/" title="<?php _e('Home');?>"><?php _e('Home');?></a>&nbsp;&gt;
								
								<a href="<?php get_author_posts_url( get_the_author_meta( 'ID' ) );?>">
								<?php echo get_the_author();?></a>							
						</div>
					</h2>
					</span>
					</div><!--et-header-->
					</div><!--etrh-->
					  </div><!--etlh-->
				<div class="rec-entry" >
				
				<?php /* Display navigation to next/previous pages when applicable */ ?>
				<?php if ( $wp_query->max_num_pages > 1 ) : ?>
					<div id="nav-above" class="navigation">
						<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'xiufanr' ) ); ?></div>
						<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'xiufanr' ) ); ?></div>
					</div><!-- #nav-above -->
				<?php endif; ?>
				
<?php	
	/* Since we called the_post() above, we need to
	 * rewind the loop back to the beginning that way
	 * we can run the loop properly, in full.
	 */
	rewind_posts();

	/* Run the loop for the author archive page to output the authors posts
	 * If you want to overload this in a child theme then include a file
	 * called loop-author.php and that will be used instead.
	 */
	 get_template_part( 'loop', 'author' );
?>
			<?php /* Display navigation to next/previous pages when applicable */ ?>
			<?php if (  $wp_query->max_num_pages > 1 ) : ?>
							<div id="nav-below" class="navigation">
								<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'xiufanr' ) ); ?></div>
								<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'xiufanr' ) ); ?></div>
							</div><!-- #nav-below -->
			<?php endif; ?>
			</div><!--rec-entry-->	
					<div class = "bg-bottom">
							<div class = "bg-bottom-r"></div>
					  </div>
			</div><!--entry-list-->
			</div><!-- #content -->
		</div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
